package com.dy.placeOrder;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author author
 * @since 2024-11-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("confirm_order")
@ApiModel(value="ConfirmOrder对象", description="")
public class ConfirmOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "确认订单主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "关联接收地址表（receiving_address）主键id")
    private Integer rid;

    @ApiModelProperty(value = "关联订单表（order）主键id")
    private Integer oid;

    @ApiModelProperty(value = "订单留言")
    private String orderMessage;

    @ApiModelProperty(value = "总金额")
    private BigDecimal totalAmount;

    @ApiModelProperty(value = "关联用户表（user）主键id")
    private Integer uid;

    @ApiModelProperty(value = "0未支付、1待支付、2已支付、3待收货、4待评价")
    private Integer state;

    @ApiModelProperty(value = "支付时间")
    private LocalDateTime paymentTime;

    @TableField(exist = false)
    private Integer sl;
    @TableField(exist = false)
    private String oname;


    @TableField(exist = false)
    private String rname;
    @TableField(exist = false)
    private String rphone;
    @TableField(exist = false)
    private String raddress;
    @TableField(exist = false)
    private String rdetailedAddress;
    @TableField(exist = false)
    private BigDecimal rtotalAmount;


    @TableField(exist = false)
    private String ofw;
    @TableField(exist = false)
    private String otp;
    @TableField(exist = false)
    private String osl;
    @TableField(exist = false)
    private String ogg;
    @TableField(exist = false)
    private String oyd;
    @TableField(exist = false)
    private String ostatus;

}
